Repository navigation
ci: fix release builds and make the target matrix honest - #1
Merged
Merged
Conversation
The v0.42 release published with zero assets. Two separate problems.
Linux builds failed outright:
Package gl was not found in the pkg-config search path.
wl_platform.h:27:10: fatal error: wayland-client-core.h: No such file
On Ubuntu 24.04 libgl1-mesa-dev is a transitional dummy package with no
files of its own, so cache-apt-pkgs-action cached nothing and gl.pc never
reached the disk -- the step reported success while installing nothing.
Separately, go-gl/glfw/v3.4 (via fyne v2.8) enables both X11 and Wayland
by default and needs the wayland/xkbcommon headers too. Install the real
packages with plain apt instead of the caching action.
The matrix also never did what it claimed: the six Rust-style target
triples were never backed by GOOS/GOARCH/CC, so all three ubuntu jobs
emitted the same linux/amd64 glibc binary, both macos jobs the same
darwin/arm64 binary, and "msvc" was MinGW. Six jobs, three distinct
binaries, every one mislabeled -- v0.4 has been shipping an
aarch64-unknown-linux-musl asset that cannot run on aarch64.
Replace them with five runners that natively produce each target, named
for what they actually are. armv7 and musl are dropped; they have no
hosted runner and cgo+fyne cross-compilation needs full arm sysroots.
Also:
- fail-fast: false, so one platform's failure stops masking the others.
The windows and macos jobs were cancelled, never actually run, which
hid that the checksum step would have failed on windows anyway: it ran
under pwsh, where shasum does not exist. Both steps now pin bash.
- go-version-file: go.mod, replacing a hardcoded 1.23 against go.mod's
1.27 -- it only worked because GOTOOLCHAIN=auto fetched a second
toolchain behind the scenes.
- Drop `go install fyne.io/fyne/v2/cmd/fyne@latest`; the build never
invokes the fyne CLI and assets are embedded via //go:embed.
- Bump all actions to current majors, clearing the Node 20 deprecation.
- Add workflow_dispatch to re-run a build without touching a release.
Co-Authored-By: Claude Opus 5 <[email protected]>
The first matrix run with fail-fast disabled surfaced what the old
cancel-on-first-failure had been hiding: the windows build itself is
fine, but the checksum step died with
shasum: command not found (exit 127)
git-bash on windows-latest ships neither shasum nor, assume, sha256sum,
and macos ships only shasum. Try each in turn and fall back to certutil,
which is always present on windows. Echo the digest so the value is
visible in the log.
Co-Authored-By: Claude Opus 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
v0.42published with zero assets (run 38655660359). Two separate problems.1. Linux builds failed outright
ubuntu-latest),libgl1-mesa-devis a transitional dummy package that ships no files — it onlyDepends: libgl-dev, libglvnd-dev.cache-apt-pkgs-actioncaches the named packages' own file lists, so it cached nothing andgl.pcnever reached the disk. The step reported success while installing nothing useful.go-gl/glfw/v3.4(via fyne v2.8) enables both X11 and Wayland by default, so it also needslibwayland-dev,libxkbcommon-devandwayland-protocols. The old package list predates that.Fixed by installing the real packages with plain
apt-get, dropping the caching action (and its floating@latestref) entirely.2. The matrix never did what it claimed
The six Rust-style target triples were never backed by
GOOS/GOARCH/CC— the build step just rango buildnatively:matrix.targetx86_64-unknown-linux-muslarmv7-unknown-linux-musleabihfaarch64-unknown-linux-muslx86_64-apple-darwinaarch64-apple-darwinx86_64-pc-windows-msvcSix jobs, three distinct binaries, every one mislabeled.
v0.4has been shipping anaarch64-unknown-linux-muslasset that cannot run on aarch64.Replaced with five runners that natively produce each target, named for what they actually are.
Also fixed
fail-fast: false— the windows/macOS jobs werecancelled, never actually run. That masked a latent Windows failure: the checksum step ran underpwsh, whereshasumdoesn't exist. Both shell steps now pinbash.go-version-file: go.mod— replaces a hardcoded1.23againstgo.mod's1.27. It only worked becauseGOTOOLCHAIN=autoquietly downloaded a second toolchain.go install fyne.io/fyne/v2/cmd/fyne@latest— the build never invokes thefyneCLI, and assets are embedded via//go:embed. Pure cost plus a floating-ref breakage vector.Node.js 20 is deprecatedwarning. Inputs verified against eachaction.yml.workflow_dispatchadded, so a release build can be re-run on demand without deleting a release.Breaking change for consumers
The
armv7andmuslasset names disappear. They have no hosted runner and cgo+fyne cross-compilation needs full arm sysroots for GL/X11/Wayland. Anyone who downloaded them before was getting an amd64 glibc binary regardless — worth a line in the release notes.Verification
actionlintclean (it validates runner labels, soubuntu-24.04-armandmacos-15-intelare both confirmed real).go build -trimpath ./cmd/...succeeds locally on go1.27.1.fail-fast: falseit's the first time all five platforms report independently. windows and both macOS targets haven't actually been exercised since 2023. The five.sha256values should now be five distinct hashes — that's the direct proof the matrix problem is gone.🤖 Generated with Claude Code